package com.ttc.ssm.mapper.admin;

import com.ttc.ssm.common.CustomerPage;
import com.ttc.ssm.common.Page;
import com.ttc.ssm.po.Customer;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by 58296 on 2016/7/25.
 */
public interface CustomerMapper {
    List<Customer> getCustomerForPage(CustomerPage page);
    int totalRows(Map where);
    void updateCustomerById(Customer customer);
    Customer getCustomerById(int customer_id);
    void deleteCustomers(Map<String,Object> map);
    void updateCustomerStatus(int customer_id, int status,String date);
    int count_customer() throws  Exception;
    int countCustomerByMonth(Date date_start,Date date_end) throws Exception;
}
